package com.ruoyi.constant;

/**
 * @program: ruoyi
 * @description: 外业核查状态
 * @author: xpq
 * @create: 2022-12-21 11:22
 **/
public enum KsflEnum {
    CZKS(5, "持证矿山"),
    GBJD(3, "关闭"),
    GGFZ(2, "废止"),
    ZX(1, "注销"),
    QT(4, "其他"),
    LSYL(6, "历史遗留"),
    ZC(0, "正常"),
    MOUNTED(100, "已挂载"),
    UNMOUNTED(101, "未挂载");




    private Integer code;
    private String desc;

    KsflEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (KsflEnum value : KsflEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
